{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "d4bfd6e6",
   "metadata": {},
   "source": [
    "-----------\n",
    "* 本学习记录人：戴祥哲\n",
    "* 学习时间：2021-11-11\n",
    "* week06\n",
    "* [参考文档](https://python.org/doc)\n",
    "* [徐老师博客](https://cnblogs.com/xuzhichao)\n",
    "-----------\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2de47a92",
   "metadata": {},
   "source": [
    "# 本周学习内容\n",
    "\n",
    "## 1. 认识[列表](https://docs.python.org/3/tutorial/introduction.html#lists)\n",
    "\n",
    "## 2. 列表的取值\n",
    "\n",
    "## 3. 列表的一般方法\n",
    "\n",
    "## 4. 列表的高级方法\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "37a62dbc",
   "metadata": {},
   "source": [
    "### 1. 初始列表\n",
    "> 1. 列表的样式：[元素1，元素2，元素3..]\n",
    "> 2. 列表的性质：\n",
    ">> 1. 列表式有顺序的（Sequence Types 序列类型的数据），第一个元素的位置/索引(index)是0\n",
    ">> 2. 列表可以存放不同的类型数据，**但是**一般存放相同类型数据\n",
    ">> 3. 列表可以按照序列数据 进行 取值(index)&切片(slices)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "47e870fa",
   "metadata": {},
   "outputs": [],
   "source": [
    "username_datebase= \"ALex;Jack;shuaige;Marry\"\n",
    "username_datebase_list=[\"Alex\",\"Jack\",\"shuaige\",\"Marry\"]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "2e4c4c8d",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Jack\n",
      "Jack\n"
     ]
    }
   ],
   "source": [
    "# 目标去除每个账号名称\n",
    "print(username_datebase[5:9])#字符串就显得比较麻烦\n",
    "print(username_datebase_list[1])#列表可以按照独立元素进行取值"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "618ffb04",
   "metadata": {},
   "outputs": [],
   "source": [
    "#列表中可以包含不同的types(int\\float\\str..也可是列表)数据\n",
    "\n",
    "different_types_list=[\"Alex\",18,175.5,[\"广东省广州市南方学院\",510970]]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "0f8e396c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Alex'"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "different_types_list[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "4cf6b023",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "175.5"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "different_types_list[2]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "23667ea8",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['广东省广州市南方学院', 510970]"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "different_types_list[3]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "fb3a0cad",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "510970"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "different_types_list[3][1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "a067c3b1",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "5"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#思考： 取值是否需要知道列表的长度？如果列表只有5个元素，\n",
    "#取值不能取5以上\n",
    "squares=[1,4,9,16,25]\n",
    "print(squares[0])\n",
    "# print(squares[10])#IndexError(索引错误): list index out of range\n",
    "#一般 列表的取值需要先知道/清楚列表的长度，取值不要超过其长度范围\n",
    "len(squares)#取值 不应该大于 长度5 位置4"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a2a98ca3",
   "metadata": {},
   "source": [
    "### 2.1切片（slices）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "c4dcc437",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[1, 4, 9, 16, 25]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "squares=[1,4,9,16,25]\n",
    "squares"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "3ab8c33c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[9, 16]"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# （从左往右取）9和16\n",
    "squares[2:4]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "b00e0f37",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[9, 16]"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# (从右往左取) 9和16\n",
    "squares[-3:-1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "bc5a3a76",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[9, 16, 25]"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#（从左往右取）9，16，25：取到末尾或者首位都一律不写最好\n",
    "squares[2:]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "5fdd6b46",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[9, 16, 25]"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#（从右往左取）9，16，25\n",
    "squares[-3:]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "c4cae851",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[1, 4, 9]"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "squares[:3]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "1fa84bbf",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[1, 9]"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 取1 9 ，切片的步长step [start,stop,step]\n",
    "squares[:3:2]"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d6af9939",
   "metadata": {},
   "source": [
    "### 2.2列表取值实践"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "754b6f28",
   "metadata": {},
   "outputs": [],
   "source": [
    "vowels=['a','e','i','o','u']# vowels 元音 [\"数字媒体\"]\n",
    "word =\"Milliways\"           # 文本1000000个字符"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "fd54e3e4",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "i\n",
      "i\n",
      "a\n"
     ]
    }
   ],
   "source": [
    "# 请检查word 中出现了哪些 vowels 中的元素，并打印出来\n",
    "# 知识点：\n",
    "# 1. for 循环和if条件判断\n",
    "# 2. in 判断是否存在在列表中\n",
    "for i in word:\n",
    "    if i in vowels:\n",
    "        print(i)\n",
    "# 请检查 vo"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "0e45945c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "a\n",
      "i\n"
     ]
    }
   ],
   "source": [
    "# 请检查 vowels 中出现的word？\n",
    "\n",
    "for i in vowels:\n",
    " #   print(i)\n",
    "    if i in word:\n",
    "        print(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c6da8aba",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 枚举：确定出现的位置\n",
    "user_word=input(\"请输入你要查询的文本\")\n",
    "for i,v in enumerate(user_word):\n",
    "    if v in vowels:\n",
    "        print(i,v)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "710aad06",
   "metadata": {},
   "source": [
    "## 3.列表的一般方法\n",
    "| 列表的方法      | Description |一般用在什么场景下|\n",
    "| ----------- | ----------- |----------- |\n",
    "| append      |列表的新增      |新建列表 |\n",
    "| clear   | 列表的清除       |清空列表元素 |"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "id": "d24a175f",
   "metadata": {},
   "outputs": [],
   "source": [
    "names = [\"Mike\",\"Mary\",\"Jan\",\"Jack\"]"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "dd32727f",
   "metadata": {},
   "source": [
    "> 1. append()列表的新增，增加元素至列表末尾"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "eafe6025",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on built-in function append:\n",
      "\n",
      "append(object, /) method of builtins.list instance\n",
      "    Append object to the end of the list.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(names.append)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "id": "8c7bf8b9",
   "metadata": {},
   "outputs": [],
   "source": [
    "names.append(\"Alex\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "id": "6293fdf8",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Mike', 'Mary', 'Jan', 'Jack', 'Alex']"
      ]
     },
     "execution_count": 47,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d936514a",
   "metadata": {},
   "source": [
    "> 2. remore()选择列表的内容/值(values),删除\n",
    ">> * 注意：remove()的一般步骤：1.先查询 in 2. 再删除"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "id": "9e6ecf3f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on built-in function remove:\n",
      "\n",
      "remove(value, /) method of builtins.list instance\n",
      "    Remove first occurrence of value.\n",
      "    \n",
      "    Raises ValueError if the value is not present.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(names.remove)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "id": "cfdf4d09",
   "metadata": {},
   "outputs": [],
   "source": [
    "# remove()的一般步骤\n",
    "if \"Mary\" in names:# 先查询，再删除\n",
    "    names.remove(\"Mary\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "id": "47e35d0e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Mike', 'Jan', 'Jack', 'Alex']"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1e759011",
   "metadata": {},
   "source": [
    "> 3.pop()pop(index=-1, /)默认的删除最后一位的值"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "id": "5d3fe621",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on built-in function pop:\n",
      "\n",
      "pop(index=-1, /) method of builtins.list instance\n",
      "    Remove and return item at index (default last).\n",
      "    \n",
      "    Raises IndexError if list is empty or index is out of range.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(names.pop)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "id": "c71915bc",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Jack'"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names.pop()# 默认删除最后一个"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "id": "548ed68c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Mike', 'Jan', 'Jack']"
      ]
     },
     "execution_count": 53,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "f6d24d8c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Jan'"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names.pop(1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "id": "8fb6da99",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Mike']"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "id": "1821d1d7",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 删除实践：\n",
    "stu_id_分数=[78,88,77,78,90,90,78,88,90,89,95]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 89,
   "id": "5cdf4e10",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "88\n",
      "90\n",
      "90\n",
      "88\n",
      "90\n",
      "89\n",
      "95\n"
     ]
    }
   ],
   "source": [
    "#remove时，可能需要重复运行 才可以按照指定的要求删除所有的数\n",
    "# 分数在 低于85分 的删除\n",
    "for i in stu_id_分数:\n",
    "    print(i)\n",
    "    if i<85:\n",
    "        stu_id_分数.remove(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 90,
   "id": "0abf789c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[88, 90, 90, 88, 90, 89, 95]"
      ]
     },
     "execution_count": 90,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "stu_id_分数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 95,
   "id": "a371b427",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "当前的列表： [78, 88, 77, 78, 90, 90, 78, 88, 90, 89, 95]\n",
      "循环遍历结果： 0 78\n",
      "当值小于85时 要删除的值： 78\n",
      "当前的列表： [88, 77, 78, 90, 90, 78, 88, 90, 89, 95]\n",
      "循环遍历结果： 1 77\n",
      "当值小于85时 要删除的值： 77\n",
      "当前的列表： [88, 78, 90, 90, 78, 88, 90, 89, 95]\n",
      "循环遍历结果： 2 90\n",
      "当前的列表： [88, 78, 90, 90, 78, 88, 90, 89, 95]\n",
      "循环遍历结果： 3 90\n",
      "当前的列表： [88, 78, 90, 90, 78, 88, 90, 89, 95]\n",
      "循环遍历结果： 4 78\n",
      "当值小于85时 要删除的值： 78\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95]\n",
      "循环遍历结果： 5 90\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95]\n",
      "循环遍历结果： 6 89\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95]\n",
      "循环遍历结果： 7 95\n"
     ]
    }
   ],
   "source": [
    "# 删除实践：需要执行两次，即可删干净\n",
    "stu_id_分数=[78,88,77,78,90,90,78,88,90,89,95]\n",
    "for i,v in enumerate(stu_id_分数):\n",
    "    print(\"当前的列表：\",stu_id_分数)\n",
    "    print(\"循环遍历结果：\",i,v)\n",
    "    if v< 85:\n",
    "        print(\"当值小于85时 要删除的值：\",stu_id_分数.pop(i))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 91,
   "id": "c069c772",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[0, 2, 3, 6]"
      ]
     },
     "execution_count": 91,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#正确删除操作\n",
    "#新建一个 删除的索引值的 列表\n",
    "pop_list=[] # 准备工作。准备要删除的信息的索引值 index 存起来 等下用\n",
    "\n",
    "stu_id_分数=[78,88,77,78,90,90,78,88,90,89,95]\n",
    "for i,v in enumerate(stu_id_分数):\n",
    "    if v<85:\n",
    "        pop_list.append(i)\n",
    "pop_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "e0a3e454",
   "metadata": {},
   "outputs": [],
   "source": [
    "stu_id_分数 = [78,88,77,78,90,90,78,88,90,89,95,77,78,98,77,82]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "230786bf",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "当前的列表： [78, 88, 77, 78, 90, 90, 78, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 0 78\n",
      "当值小于85时 要删除的值： 78\n",
      "当前的列表： [88, 77, 78, 90, 90, 78, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 1 77\n",
      "当值小于85时 要删除的值： 77\n",
      "当前的列表： [88, 78, 90, 90, 78, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 2 90\n",
      "当前的列表： [88, 78, 90, 90, 78, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 3 90\n",
      "当前的列表： [88, 78, 90, 90, 78, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 4 78\n",
      "当值小于85时 要删除的值： 78\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 5 90\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 6 89\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 7 95\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 77, 78, 98, 77, 82]\n",
      "循环遍历结果： 8 77\n",
      "当值小于85时 要删除的值： 77\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 78, 98, 77, 82]\n",
      "循环遍历结果： 9 98\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 78, 98, 77, 82]\n",
      "循环遍历结果： 10 77\n",
      "当值小于85时 要删除的值： 77\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 0 88\n",
      "当前的列表： [88, 78, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 1 78\n",
      "当值小于85时 要删除的值： 78\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 2 90\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 3 88\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 4 90\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 5 89\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 6 95\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 78, 98, 82]\n",
      "循环遍历结果： 7 78\n",
      "当值小于85时 要删除的值： 78\n",
      "当前的列表： [88, 90, 90, 88, 90, 89, 95, 98, 82]\n",
      "循环遍历结果： 8 82\n",
      "当值小于85时 要删除的值： 82\n"
     ]
    }
   ],
   "source": [
    "for j in stu_id_分数:\n",
    "    if j<85:\n",
    "        for i,v in enumerate(stu_id_分数):\n",
    "            print(\"当前的列表：\",stu_id_分数)\n",
    "            print(\"循环遍历结果：\",i,v)\n",
    "            if v < 85:\n",
    "                print(\"当值小于85时 要删除的值：\",stu_id_分数.pop(i))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "8a6cd7ff",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[88, 90, 90, 88, 90, 89, 95, 98]"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "stu_id_分数"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
